package HomeWork.Day01;
import java.util.Scanner;
public class LOL_Test5 {
    public static void main(String[] args) {
        System.out.println("请输入网址");
        Scanner scan = new Scanner(System.in);
        String line = scan.nextLine();
        int start=line.indexOf(".")+1;
        int end=line.indexOf(".",start);
        String name=line.substring(start,end+1);
        if(name.equals("baidu")){
            System.out.println("this is a web of baidu");
        }else if(name.equals("tedu")){
            System.out.println("this is a web of DaNeiEdu");
        }else{
            System.out.println("others web");
        }
    }
}

